import request from '@/utils/request'

export function listFileBindRecord(query) {
  return request({
    url: '/system/fileBindRecord/list',
    method: 'get',
    params: query
  })
}
export function delFileBindRecord(fileBindRecordIds) {
  return request({
    url: '/system/fileBindRecord/' + fileBindRecordIds,
    method: 'delete'
  })
}
export function fileBindRecordAdd(data) {
  return request({
    url: '/system/fileBindRecord',
    method: 'post',
    data: data
  })
}
export function fileBindRecordManager(data) {
  return request({
    url: '/system/fileBindRecord',
    method: 'put',
    data: data
  })
}
export function fileBindRecordInfo(query) {
  return request({
    url: '/system/fileBindRecord/' + query,
    method: 'get',
    params: query
  })
}
export function auditFileBindRecord(query) {
    return request({
      url: '/system/fileBindRecord/audit?fileBindRecordId=' + query.fileBindRecordId + '&preAudit=' + query.preAudit + '&optType='+query.optType + '&reason=' + query.reason ,
      method: 'get',
    //   params
    })
  }
  // 生成编号
  export function getCode(query) {
    return request({
      url: '/system/fileBindRecord/getCode',
      method: 'get',
      params: query
    })
  }